package src.student;

public class DomeClass {
	
	private String  domeclass ;
	private String teacher ;
	public String getDomeclass() {
		return domeclass;
	}
	public void setDomeclass(String domeclass) {
		this.domeclass = domeclass;
	}
	public String getTeacher() {
		return teacher;
	}
	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}
	@Override
	public String toString() {
		return "DomeClass [domeclass=" + domeclass + ", teacher=" + teacher
				+ "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((domeclass == null) ? 0 : domeclass.hashCode());
		result = prime * result + ((teacher == null) ? 0 : teacher.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DomeClass other = (DomeClass) obj; 
		if (domeclass == null) {
			if (other.domeclass != null)
				return false;
		} else if (!domeclass.equals(other.domeclass))
			return false;
		if (teacher == null) {
			if (other.teacher != null)
				return false;
		} else if (!teacher.equals(other.teacher))
			return false;
		return true;
	}
	
	
}
